package net.cellobject.sqlitexmlbrowser.shared;

import java.io.IOException;
import java.io.OutputStream;

class StringOutputStream extends OutputStream {
	private final StringBuilder m_string;

	StringOutputStream() {
		m_string = new StringBuilder();
	}

	@Override
	public void write(final int b) throws IOException {
		m_string.append((char)b);
	}

	@Override
	public String toString() {
		return m_string.toString();
	}
}
